﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Model
{
    [Serializable]
    public class SaleDetail
    {

        [Key]
        public int Saleid { get; set; }
        [ForeignKey("Product")]
        public string ProductId { get; set; }

        public int Quantity { get; set; }

        public virtual Product Product { get; set; }
        public virtual Sale Sale { get; set; }
    }
}
